Skip to content

Conversation

@DannyvdSluijs
Copy link
Contributor

@DannyvdSluijs DannyvdSluijs commented Feb 20, 2025

This PR introduces PHPStan and improves the source based on PHPStan findings. It also includes a GitHub action workflow to run the static analysis on every pull request making sure we won't introduce regression in future PR's. If an exception is needed the phpstan-baseline.neon can be regenerated. In this way there is a way around if the static analysis step would block a PR.

I see this as a first set of improvements to make the exact-php-client more type safe and "free from bugs" both promises PHPStan is being used by in the PHP industry standards. Follow-up PR's could consist of

@DannyvdSluijs DannyvdSluijs marked this pull request as ready for review February 25, 2025 18:44
@remkobrenters
Copy link
Collaborator

Love this first step to stricter code.

@stephangroen
Copy link
Member

stephangroen commented Feb 27, 2025

@DannyvdSluijs You've done some great work in the past days/weeks, thanks! Tried to merge, resolved conflicts, but ran into some issues. Could you check them? Did the merge based on your work in the previous PR's I just merged.

@DannyvdSluijs
Copy link
Contributor Author

@stephangroen thanks for merging all those PR's. I've pushed a fix. This was caused from changes from main being merged in, mostly because some issues from the baseline where already resolved in main.

@stephangroen stephangroen merged commit caeb3d7 into picqer:main Feb 27, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants